.box1 {
    width: 200px;
    height: 200px;
    &:hover {
        background-color: pink;
    }
    &:active {
        background-color: orange;
    }
}